<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:text="${username}"></div>
hello world!
<p th:each="users:${user}" th:text="${users}"></p>

<p th:text="${user.username}"><p>
<p th:if="${user.username=='LUCY'}">HELLO WORLD!</p>
<p th:text="${#dates.format(#dates.createNow(),'yyyy-MM-dd')}"></p>
<table border="1">
    <thead>
    <tr>
        <th>用户名</th>
        <th>年龄</th>
        <th>班级</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="users:${student}">
        <td th:text="${users.username}"></td>
        <td th:text="${users.age}"></td>
        <td th:text="${users.grade}"></td>

    </tr>
    </tbody>
</table>
</body>
</html>